//
//  MainViewController.m
//  runtime
//
//  Created by dihuijun on 17/3/28.
//  Copyright © 2017年 Cycle. All rights reserved.
//

#import "MainViewController.h"
#import "ViewController.h"
#import "NewViewController.h"
#import "KindOfViewController.h"
#import "ChangeMethodViewController.h"
#import "DongTaiViewController.h"
#import "CateAddViewController.h"
#import "ModelDictViewController.h"
#import "LianShiViewController.h"
#import "runtimeControlBtnViewController.h"

@interface MainViewController ()

@end
int a=3;
@implementation MainViewController



///只能在本文件夹（.m）使用,只读不能改
static NSString * const name = @"123";


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark ---- 1.关键字
- (IBAction)Click1:(id)sender {
    ViewController *vc = [[ViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}


#pragma mark ---- 2.新特性
- (IBAction)click2:(id)sender {
    
    NewViewController *vc = [[NewViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
    
    
}
#pragma mark --- 3.kindof
- (IBAction)ClickKindOf:(id)sender {
    
    
    KindOfViewController *vc = [[KindOfViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
    
    
    
    
}
#pragma mark ---- 4.changeMethod
- (IBAction)changeMethodClick:(id)sender {
    
    ChangeMethodViewController  *vc = [[ChangeMethodViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}
#pragma mark ---- 5.动态添加方法
- (IBAction)click:(id)sender {
    DongTaiViewController  *vc = [[DongTaiViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}
#pragma mark ---- 6.给分类添加属性
- (IBAction)ClickAddProperty:(id)sender {
    CateAddViewController  *vc = [[CateAddViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}

#pragma mark ---- 7.字典转模型
- (IBAction)ClickModelWithDict:(id)sender {
    ModelDictViewController  *vc = [[ModelDictViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}

#pragma mark ---- 13.链式编程思想
- (IBAction)ClickLiansi:(UIButton *)sender {
    LianShiViewController  *vc = [[LianShiViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}
#pragma mark ---- 14.runtime控制按钮
- (IBAction)ClickBtnControl:(UIButton *)sender {
    runtimeControlBtnViewController *runtimeC = [runtimeControlBtnViewController new];
    [self.navigationController pushViewController:runtimeC animated:YES];
}

@end
